package com.wyc.apiboss.service.impl;

import com.wyc.apiboss.feign.DriverUserFeignClient;
import com.wyc.apiboss.service.CarService;
import com.wyc.internalCommon.request.CarDTO;
import com.wyc.internalCommon.result.ApiResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CarServiceImpl implements CarService {

    @Autowired
    private DriverUserFeignClient driverUserFeignClient;

    /**
     * 添加车辆信息
     * @param carDTO
     * @return
     */
    @Override
    public ApiResult addCar(CarDTO carDTO) {
        return driverUserFeignClient.insertOrUpdateCar(carDTO);
    }
}
